package com.tuananh.radnom.gwt.client.overall;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiFactory;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.Widget;
import com.sencha.gxt.widget.core.client.container.BorderLayoutContainer;

public class NodeReport implements IsWidget {
	HandlerManager eventBus;
	private static NodeReportUiBinder uiBinder = GWT
			.create(NodeReportUiBinder.class);

	interface NodeReportUiBinder extends UiBinder<Widget, NodeReport> {
	}

	public NodeReport(HandlerManager eventBus) {
		this.eventBus = eventBus;

	}

	public Widget asWidget() {
		// TODO Auto-generated method stub
		Widget w = uiBinder.createAndBindUi(this);
		return w;
	}

	@UiField
	BorderLayoutContainer con;

	@UiField
	NetServiceTree serviceTree;

	@UiFactory
	public NetServiceTree createNetServiceTree() {
		return new NetServiceTree(eventBus);
	}
}
